package com.service.pay.diamond.dao;

import com.service.pay.diamond.entity.OrderEntity;
import com.service.pay.diamond.interpreter.OrderInterpreter;
import com.service.pay.diamond.model.OrderModel;
import com.service.pay.diamond.repository.OrderRepository;
import com.tool.base.base.BaseDao;
import org.springframework.stereotype.Component;

@Component
public class OrderDao extends BaseDao<OrderEntity, OrderModel, OrderRepository, OrderInterpreter> {
    public OrderModel getByOrder(String orderNo) {
        return mapper.entityToModel(repository.getByOrderNo(orderNo));
    }
}
